package org.qiyu.live.im.dto;

import java.io.Serial;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-10-08
 * Time: 19:33
 */
public class ImMsgBody implements Serializable {

    @Serial
    private static final long serialVersionUID = -1367778647401029698L;

    /**
     * 接入IM的业务线Id
     */
    private int appId;

    /**
     * 接入IM的userId
     */
    private Long userId;

    /**
     * 接入IM后用于身份校验
     */
    private String token;

    /**
     * 用于传输的数据
     */
    private String data;

    /**
     * 消息具体的业务(比如是直播的消息还是聊天框的消息....)
     */
    private int biZiCode;

    /**
     * 消息的唯一表示
     */
    private String messageId;

    /**
     * 消息属于哪一个直播间
     */
    private Integer roomId;


    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public int getBiZiCode() {
        return biZiCode;
    }

    public void setBiZiCode(int biZiCode) {
        this.biZiCode = biZiCode;
    }

    public int getAppId() {
        return appId;
    }

    public void setAppId(int appId) {
        this.appId = appId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    @Override
    public String toString() {
        return "ImMsgBody{" +
                "appId=" + appId +
                ", userId=" + userId +
                ", token='" + token + '\'' +
                ", data='" + data + '\'' +
                ", biZiCode=" + biZiCode +
                ", messageId='" + messageId + '\'' +
                ", roomId=" + roomId +
                '}';
    }
}